﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.TrainUI {
    import flash.display.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.util.*;

    public class TrainStationDialog extends GenericDialog {

        public static var assetDict:Dictionary;

        private var m_view:TrainStationDialogView;

        public function TrainStationDialog(){
            super("", "", 0, null, "TrainUI_TrainStation");
        }
        public function get hasOverlay():Boolean{
            return (this.m_view.hasOverlay);
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get(DelayedAssetLoader.TRAIN_ASSETS, makeAssets);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["dialog_bg"] = (new m_comObject.trainDialog_bg() as DisplayObject);
            _local1["portrait_card"] = m_comObject.portrait_card;
            _local1["portrait_empty"] = m_comObject.portrait_empty;
            _local1["checkmark"] = m_comObject.checkmark;
            _local1["clock"] = (new m_comObject.clock() as DisplayObject);
            _local1["crate_big"] = (new m_comObject.crate_big() as DisplayObject);
            _local1["crate_small"] = m_comObject.crate_small;
            _local1["coin_big"] = (new m_comObject.coin_big() as DisplayObject);
            _local1["coin_small"] = m_comObject.coin_small;
            _local1["btn_prev_disabled"] = m_comObject.btn_prev_disabled;
            _local1["btn_prev_up"] = m_comObject.btn_prev_up;
            _local1["btn_prev_over"] = m_comObject.btn_prev_over;
            _local1["btn_prev_down"] = m_comObject.btn_prev_down;
            _local1["btn_next_disabled"] = m_comObject.btn_next_up;
            _local1["btn_next_up"] = m_comObject.btn_next_up;
            _local1["btn_next_over"] = m_comObject.btn_next_over;
            _local1["btn_next_down"] = m_comObject.btn_next_down;
            assetDict = _local1;
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            this.m_view = new TrainStationDialogView(_arg1, m_message, m_title, m_type, m_callback);
            return (this.m_view);
        }

    }
}//package Display.TrainUI 
